WT_DECLARE_WT_MEMBER(1,JavaScriptConstructor,"WAbstractMedia",function(d,b){function c(){if(b.mediaId){var a=$("#"+b.mediaId).get(0);if(a)return""+a.volume+";"+a.currentTime+";"+(a.readyState>=1?a.duration:0)+";"+(a.paused?"1":"0")+";"+(a.ended?" 1":"0")+";"+a.readyState}return null}jQuery.data(b,"obj",this);this.play=function(){if(b.mediaId){var a=$("#"+b.mediaId).get(0);if(a){a.play();return}}if(b.alternativeId)(a=$("#"+b.alternativeId).get(0))&&a.WtPlay&&a.WtPlay()};this.pause=function(){if(b.mediaId){var a=
$("#"+b.mediaId).get(0);if(a){a.pause();return}}if(b.alternativeId)(a=$("#"+b.alternativeId).get(0))&&a.WtPlay&&a.WtPause()};b.wtEncodeValue=c});
